home *** CD-ROM | disk | FTP | other *** search
/ Practical Web Pages 2004 September / PracticalWebPages-WPG13-09-2004-Coverdisc.iso / pc / Software / Toolkit / Sothink SWF Quicker 1.5 / data1.cab / Public_Files / Classes / NetStream.as < prev    next >
Encoding:
Text File  |  2004-06-14  |  2.0 KB  |  19 lines

  1. class NetStream
  2. {
  3.     var bufferLength                                                     // Read-only.
  4.     var bufferTime                                                       // Read-only. It refers to the number of seconds assigned to the buffer by NetStream.setBufferTime(). The default value is .1(one-tenth of a second). To determine the number of seconds currently in the buffer, use NetStream.bufferLength.
  5.     var bytesLoaded                                                      // Read-only.
  6.     var bytesTotal                                                       // Read-only. It refers to the total size in bytes of the file being loaded into the player.
  7.     var urrentFps                                                        // Read-only.
  8.     var time                                                             // Read-only. It refers to the position of the playhead, in seconds.
  9.  
  10.     function NetStream(my_nc)                                            // It is a constructor. It creates a stream that can be used for playing FLV files through the specified NetConnection object.
  11.     function close()                                                     // It stops playing all data on the stream.
  12.     function pause(pauseResume)                                          // It pauses or resumes playback of a stream.
  13.     function play(filename)                                              // It begins playback of an external video (FLV) file. 
  14.     function seek(numberOfSeconds)                                       // It seeks the keyframe closest to the specified number of seconds from the beginning of the stream. 
  15.     function setBufferTime(numberOfSeconds)                              // It specifies how long to buffer messages.
  16.  
  17.     function onStatus()                                                  // It is invoked every time a status change or error is posted for the NetStream object. If you want to respond to this event handler, you must create a function to process the information object. 
  18. }
  19.